package com.openbravo.ws.customers;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class Location
  implements Serializable
{
  private static final long serialVersionUID = 9751926027090L;
  private String address1;
  private String address2;
  private String businessPartnerId;
  private String city;
  private String clientId;
  private String country;
  private String id;
  private String postal;
  private String region;
  private Object __equalsCalc = null;
  private boolean __hashCodeCalc = false;
  private static TypeDesc typeDesc = new TypeDesc(Location.class, true);

  public Location()
  {
  }

  public Location(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, String paramString8, String paramString9)
  {
    this.address1 = paramString1;
    this.address2 = paramString2;
    this.businessPartnerId = paramString3;
    this.city = paramString4;
    this.clientId = paramString5;
    this.country = paramString6;
    this.id = paramString7;
    this.postal = paramString8;
    this.region = paramString9;
  }

  public String getAddress1()
  {
    return this.address1;
  }

  public void setAddress1(String paramString)
  {
    this.address1 = paramString;
  }

  public String getAddress2()
  {
    return this.address2;
  }

  public void setAddress2(String paramString)
  {
    this.address2 = paramString;
  }

  public String getBusinessPartnerId()
  {
    return this.businessPartnerId;
  }

  public void setBusinessPartnerId(String paramString)
  {
    this.businessPartnerId = paramString;
  }

  public String getCity()
  {
    return this.city;
  }

  public void setCity(String paramString)
  {
    this.city = paramString;
  }

  public String getClientId()
  {
    return this.clientId;
  }

  public void setClientId(String paramString)
  {
    this.clientId = paramString;
  }

  public String getCountry()
  {
    return this.country;
  }

  public void setCountry(String paramString)
  {
    this.country = paramString;
  }

  public String getId()
  {
    return this.id;
  }

  public void setId(String paramString)
  {
    this.id = paramString;
  }

  public String getPostal()
  {
    return this.postal;
  }

  public void setPostal(String paramString)
  {
    this.postal = paramString;
  }

  public String getRegion()
  {
    return this.region;
  }

  public void setRegion(String paramString)
  {
    this.region = paramString;
  }

  public synchronized boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof Location))
      return false;
    Location localLocation = (Location)paramObject;
    if (paramObject == null)
      return false;
    if (this == paramObject)
      return true;
    if (this.__equalsCalc != null)
      return this.__equalsCalc == paramObject;
    this.__equalsCalc = paramObject;
    int i = ((this.address1 == null) && (localLocation.getAddress1() == null)) || ((this.address1 != null) && (this.address1.equals(localLocation.getAddress1())) && (((this.address2 == null) && (localLocation.getAddress2() == null)) || ((this.address2 != null) && (this.address2.equals(localLocation.getAddress2())) && (((this.businessPartnerId == null) && (localLocation.getBusinessPartnerId() == null)) || ((this.businessPartnerId != null) && (this.businessPartnerId.equals(localLocation.getBusinessPartnerId())) && (((this.city == null) && (localLocation.getCity() == null)) || ((this.city != null) && (this.city.equals(localLocation.getCity())) && (((this.clientId == null) && (localLocation.getClientId() == null)) || ((this.clientId != null) && (this.clientId.equals(localLocation.getClientId())) && (((this.country == null) && (localLocation.getCountry() == null)) || ((this.country != null) && (this.country.equals(localLocation.getCountry())) && (((this.id == null) && (localLocation.getId() == null)) || ((this.id != null) && (this.id.equals(localLocation.getId())) && (((this.postal == null) && (localLocation.getPostal() == null)) || ((this.postal != null) && (this.postal.equals(localLocation.getPostal())) && (((this.region == null) && (localLocation.getRegion() == null)) || ((this.region != null) && (this.region.equals(localLocation.getRegion()))))))))))))))))))) ? 1 : 0;
    this.__equalsCalc = null;
    return i==1;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc)
      return 0;
    this.__hashCodeCalc = true;
    int i = 1;
    if (getAddress1() != null)
      i += getAddress1().hashCode();
    if (getAddress2() != null)
      i += getAddress2().hashCode();
    if (getBusinessPartnerId() != null)
      i += getBusinessPartnerId().hashCode();
    if (getCity() != null)
      i += getCity().hashCode();
    if (getClientId() != null)
      i += getClientId().hashCode();
    if (getCountry() != null)
      i += getCountry().hashCode();
    if (getId() != null)
      i += getId().hashCode();
    if (getPostal() != null)
      i += getPostal().hashCode();
    if (getRegion() != null)
      i += getRegion().hashCode();
    this.__hashCodeCalc = false;
    return i;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanSerializer(paramClass, paramQName, typeDesc);
  }

  public static Deserializer getDeserializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanDeserializer(paramClass, paramQName, typeDesc);
  }

  static
  {
    typeDesc.setXmlType(new QName("/services/WebService", "Location"));
    ElementDesc localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("address1");
    localElementDesc.setXmlName(new QName("", "address1"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("address2");
    localElementDesc.setXmlName(new QName("", "address2"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("businessPartnerId");
    localElementDesc.setXmlName(new QName("", "businessPartnerId"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("city");
    localElementDesc.setXmlName(new QName("", "city"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("clientId");
    localElementDesc.setXmlName(new QName("", "clientId"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("country");
    localElementDesc.setXmlName(new QName("", "country"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("id");
    localElementDesc.setXmlName(new QName("", "id"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("postal");
    localElementDesc.setXmlName(new QName("", "postal"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("region");
    localElementDesc.setXmlName(new QName("", "region"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.customers.Location
 * JD-Core Version:    0.6.0
 */